<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>會員管理中心</title>
        <script src="/MyStruts2/scripts/jquery-1.11.0.min.js"></script>
        
        <script type="text/javascript">
            $(document).ready(function() {
                $("#SearchBtn").click(function() {
                    if ($("#IDText").val().length > 0) {
                        var a = $("#IDText").val();
                        var b = $.param({"acct": a});
                        $.get("/playdoll/CheckDuplicateMember.servlet", b, function(ans) {
                            if (ans === "true")
                                window.location = "/playdoll/backstage/product/memberInfo?id=" + $("#IDText").val();
                            else
                                alert('無此會員');                                                            
                        });                        
                    }
                });
            });
        </script>
    </head>
    <body>
        <center>	
        <table>
            <tr>
            <h1>會員管理中心</h1> 	
            </tr>
            <tr>    
                <td><h3><a href="/playdoll/Login/AddMember.jsp">新增會員</a></h3></td>
                <td><h3>維護會員資料：</h3></td><td></td>
            </tr>
        </table>
        請輸入欲查詢及修改的會員號：
        <input id="IDText" type="text" value="" />&nbsp;&nbsp;
        <input id="SearchBtn" type="button" value="搜尋顆" />
    </center>
</body>
</html>
